<template>
  <div>{{ user.name }}</div>
  <el-button :icon="Search" circle></el-button>
</template>

<script lang="ts" setup>
import { Search, Edit, Check, Message, Star, Delete } from '@element-plus/icons-vue'
import useStore from '@/store'
const { user } = useStore()

// 修改名字
function handleRename() {
  user.updateName('李四')
}
</script>
